06. Images as Functions

Images as Functions

Image Coordinate System

Digital images are stored as matrices or 2D arrays, and each index in the matrix corresponds to one pixel in the displayed image! The image coordinate system is similar to the Cartesian coordinate system you may have seen before: images are two dimensional and lie on the x-y plane. The main difference is that the origin (0, 0) is at the top left of the image. The x index increases as you move to the right, and y increases as you move downward an image. This coordinate system is pictured below, and you can find more information in Matlab documentation.

Image coordinate system

Image coordinate system